package com.letao.service;

import java.util.List;

import com.letao.pojo.Transaction;


public interface TransactionServiceInterface {
	/**
	 * 新增交易记录
	 * @param transaction
	 * @return
	 * @throws Exception
	 */
	boolean addTransaction(Transaction transaction)throws Exception;
	/**
	 * 删除交易记录
	 * @param transaction
	 * @return
	 * @throws Exception
	 */
	boolean deleteTransaction(Transaction transaction)throws Exception;
	/**
	 * 更新交易记录
	 * @param transaction
	 * @return
	 * @throws Exception
	 */
	boolean updateTransaction(Transaction transaction)throws Exception;
	/**
	 * 根据用户ID获取交易记录
	 * @param Uid
	 * @return
	 * @throws Exception
	 */
	List<Transaction> getTransactionByUser(Integer Uid)throws Exception;
}
